package com.platform.core.service;

import com.platform.comm.service.CommonBiz;
import com.querydsl.core.types.Predicate;
import com.platform.core.entity.NcloudSysUserPostEntity;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.util.List;

/**
 * Description: NcloudSysUserPostion 业务层接口
 *
 * @author Coder
 */
public interface NcloudSysUserPostBiz extends CommonBiz<NcloudSysUserPostEntity,String> {

    /**
     * 分页查询ncloud_sys_user_postion
     *
     * @param predicate   查询参数
     * @param pageable    分页参数
     * @return ncloud_sys_user_postion列表
     */
    Page<NcloudSysUserPostEntity> search(Predicate predicate, Pageable pageable);

    /**
     * 根据ID查询ncloud_sys_user_postion
     *
     * @param id ncloud_sys_user_postionID
     * @return ncloud_sys_user_postion
     */
    NcloudSysUserPostEntity detail(String id);

    /**
     * 新增ncloud_sys_user_postion
     *
     * @param req 新增信息
     */
    void add(NcloudSysUserPostEntity req);

    /**
     * 修改ncloud_sys_user_postion
     *
     * @param req 修改内容
     */
    void modify(NcloudSysUserPostEntity req);

    /**
     * 删除ncloud_sys_user_postion
     *
     * @param id ncloud_sys_user_postionID
     */
    void remove(String id);

    /**
     * 批量删除用户岗位信息
     * @param ncloudSysUserPostEntities
     */
    void batchRemove(List<NcloudSysUserPostEntity> ncloudSysUserPostEntities);
}
